<#include "sshdXqListTemplate.html">
<#macro xmtopic>
${matchProject.matName!} 
</#macro>
<#macro toolbarButton> 
<style>
.xm_button .el-button1{
	background-color: #FDBF19;
	border-color: #FDBF19;
}
.xm_button .el-button2{
	background-color: #FF6F00;
	border-color: #FF6F00;
}
.xm_button img {margin-right: 6px;width: 20px;}
</style>
<button  type="button" class="el-button1" onclick="reflushWindow(true);"><span style="font-size: 16px;"><img class="btn_img" src="static/cms/www/default/img/sshd/shuaxin2.png"/>刷新</span></button>
</#macro>
<#macro toolbarSearch>
<style>
.xm_search {
    padding: 20px;
    width: 1200px;
}
.xm_search .el-input__inner {
    background-color: #fff;
    background-image: none;
    border: 1px solid #d7e5ea;
    color: #1f2d3d;
    height: 35px;
    padding-left: 10px;
    width: 105px;
    font-size: 15px;
    border-radius: 5px;
}
.xm_search .txt_span{
    font-size:16px;
}
.xm_search .input_span{
    margin-left: 15px;
    margin-right: 15px;
}
.container1100 table.gridtable th{
	    width: 200px;
    padding-left: 10px;
}
.team_grid11{
	height: 450px;
    overflow-y: scroll;
}
.container1100 .team_grid11 table.gridtable td{
    width: 200px;
    padding-left: 10px;
}
</style>
<form id="searchXmForm">
<span class="txt_span">项目类型:</span>
<span class="input_span">
	<select  class="el-input__inner" name="xmArtType" style=" width: 130px;">
		<option value ="">全部</option>
	<#list matchTypeList as type>
  		<option value ="${type.value!}"  <#if xmArtType?? && type.value == xmArtType> selected </#if> >${type.name!}</option>
	</#list>  
	</select>
</span>	
<span class="txt_span">姓名:</span>
<span class="input_span">
		<input type="text" placeholder="全部" class="el-input__inner" name="xmUserName" value="${(xmUserName)!''}"/>
		<img class="btnsearchIcon" onclick="searchXmByParam('searchXmForm')"src="static/cms/www/default/img/sshd/search.png" style="margin-left: 5px; cursor: pointer;"/>
</span>	
</form>
</#macro>
<#macro tableDataList>
    <tbody>
 <#if dataList??>
  <#list dataList as data>
    <tr>  
	    <td name="xmId" class="g_checkbox" style="display:none"><input name="schoolName" type="checkbox" value="${data.id!}"></input></td>
	    <td>${data.name!}</td> 
	    <td>${data.psCount!0}</td>  
	    <td><@jmax.dc key="MATCH_SUBMIT_STATU" code="${data.submitStatus!}" /></td>  
	    <td>
<!-- 	    需要修改 ，有问题，暂时屏蔽 onclick="showXmPs('${data.name!}')"-->
		<a onclick="showXmPs('${data.accountId!}')">[查看评审详情]</a>
		</td>  
	</tr>  
  </#list>
 </#if>
  </tbody>
</#macro>
<#macro contentListShow>
	<#include "sshdXqTable.html">
	<@createTable styleClass='container1100' tabfields = ['姓名','评审项目数量','提交状态','操作'] isCheckBox=false checkBoxName='schoolName' func=buttonOprator1  funcButton=buttonOprator1/>
	<div class="team_grid11"> 
		<@createTable styleClass='container1100' tabfields = [] isCheckBox=false checkBoxName='schoolName' func=tableDataList  funcButton=buttonOprator1/>
	</div>
</#macro>
<#macro buttonOprator1>
</#macro>
<#macro extendJs>
<script>
function showXmPs(accountId) {
 	//xmUserName = encodeURI(encodeURI(xmUserName));
	window.open("matchManager.do?sshdSysXmPsDetail&sshdId=${matchProject.id!}&accountId="+accountId);
}
function searchXmByParam(formId) {
	var param = "";
	$("#" + formId + " input").each(function(){
		if(this.name == "xmUserName") {
			param = param + "&" + this.name + "=" + encodeURI(encodeURI(this.value));
		 } else {
		 	param = param + "&" + this.name + "=" + this.value;
		 }
	});	
	$("#" + formId + " select").each(function(){
		 param = param + "&" + this.name + "=" + this.value;
	});

	var url = "matchManager.do?sshdSysXmPs&sshdId=${matchProject.id!}";
	window.location.href = url  + param;
}
</script>
</#macro>